<!DOCTYPE html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <link rel="stylesheet" href="./css/font-awesome.css">
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <link rel="stylesheet" href="./css/article.css">
  <script src="./js/jquery.min.js"></script>
  <script src="./js/api.js"></script>
  <!-- <script src="./layui/layui.js"></script> -->
  <script type="text/javascript" src="./js/xadmin.js"></script>
  <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

</head>

<body>
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
      <a href="">演示</a>
      <a>
        <cite>导航元素</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>

  <div class="content">
    <div class="tl open_sousuo" style="display: none;">打开搜索区</div>
    <div class="tl" id="close_sousuo" style="display: none;">关闭搜索区</div>
    <div id="flushed" class="tl" style="display: none;">刷新</div>
    <div class="tl" id="set_up" style="display: none;">
      <ul>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>ID</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>标题</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>分类名</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>图片</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>创建时间</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>是否推荐</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>是否置顶</div>
        </li>
        <li><i class="layui-icon layui-icon-heart-fill"></i> <input type="checkbox" name="q" id="" checked>
          <div>文字状态</div>
        </li>
      </ul>
    </div>
    <div class="layui-fluid">
      <div class="layui-row layui-col-space15">
        <!-- 这是文章列表、修改、删除、增加 -->
        <form class="layui-form" id="form" action="">
          <div class="layui-form-item layui-inline">
            <label class="layui-form-label"> 标题 </label>
            <div class="layui-input-block">
              <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off"
                class="layui-input">
            </div>
          </div>
          <div class="layui-form-item layui-inline">
            <label class="layui-form-label">选择框</label>
            <div class="layui-input-block">
              <select name="cateid" lay-verify="required">
                <option value=""></option>
                <option value="3">时政</option>
                <option value="5">娱乐</option>
                <option value="8">科技</option>
                <option value="9">时尚</option>
                <option value="7">段子</option>
                <option value="6">汽车</option>
                <option value="4">图片</option>
              </select>
            </div>
          </div>
          <!-- 时间的筛选 -->
          <div class="layui-form-item layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <div style="display: flex;">
              <label class="layui-form-label"> 时间 </label>
              <input type="text" class="layui-input" id="test1">
            </div>
          </div>
          <div class="layui-form-item layui-inline">
            <div class="layui-input-block">
              <button class="layui-btn" lay-filter="formDemo" id="search"><i
                  class="layui-icon layui-icon-search"></i>搜索</button>
              <button type="reset" class="layui-btn layui-btn-primary" id="resetting">
                <i class="layui-icon layui-icon-refresh"></i>重置</button>
            </div>
          </div>
        </form>



        <!-- 图标 -->
        <div class="layui-btn-container">
          <div>
            <button type="button" class="layui-btn layui-btn-primary layui-border-blue" id="xinzeng"><i
                class="layui-icon layui-icon-addition"></i> 新增</button>
            <button type="button" class="layui-btn layui-btn-primary layui-border-orange" id="btnExports"><i
                class="layui-icon layui-icon-download-circle"></i>导出</button>
          </div>
          <ul class="function_button">
            <li id="close">
              <i class="layui-icon layui-icon-up"></i>
            </li>
            <li style="display: none;" id="open">
              <i class=" layui-icon layui-icon-down"></i>
            </li>
            <li id="shuaxin">
              <i class=" layui-icon layui-icon-refresh"></i>
            </li>
            <li id="menu"><i class="layui-icon layui-icon-app"></i></li>
          </ul>
        </div>
      </div>
    </div>

    <div class="i">
      <table class="layui-table">
        <colgroup>
          <col width="50">
          <col width="200">
          <col width="50">
          <col width="100">
          <col width="100">
          <col width="80">
          <col width="80">
          <col width="80">
          <col>
        </colgroup>
        <thead>
          <tr>
            <th>ID</th>
            <th>标题</th>
            <th>分类名</th>
            <th>图片</th>
            <th>创建时间</th>
            <th>是否推荐</th>
            <th>是否置顶</th>
            <th>文章状态</th>
            <th style=" text-align: center;">操作</th>
          </tr>
        </thead>
        <tbody id="adTable">
          <!-- <tr>
            <td>${id}</td>
            <td>${content}</td>
            <td>${catename}</td>
            <td><img src="${pic}" alt=""></td>
            <td>${create_date}</td>
            <td>${ishot}</td>
            <td>${istop}</td>
            <td>${status}</td>
            <td class="compile">
              <ul>
                <li><i class="layui-icon layui-icon-edit"></i></li>
                <li><i class="layui-icon layui-icon-delete"></i></li>
              </ul>
            </td>
          </tr> -->
        </tbody>
      </table>
      <!-- 设置分页器 -->
      <div id="test12"></div>
    </div>
  </div>


</body>
<script src="./lib/layui/layui.all.js"></script>
<script>
  //Demo
  layui.use('form', function () {
    var form = layui.form;

    //提交
    form.on('submit(formDemo)', function (data) {
      layer.msg(JSON.stringify(data.field));
      return false;
    });
  });
  $('#close').on('click', function () {
    $(this).hide()
    $('#form').hide()
    $('#open').show()
  })


  $('#open').on('click', function () {
    $(this).hide()
    $('#form').show()
    $('#close').show()
  })


  // 刷新页面的效果
  $(".layui-icon-refresh").on('click', function () {
    $('.layui-btn,.layui-btn-small').click()
  })


</script>
<script>
  layui.use('laydate', function () {
    var laydate = layui.laydate;

    //执行一个laydate实例
    laydate.render({
      elem: '#test1', //指定元素
      range: true,
    });
  });
</script>
<script src="./js/article.js"></script>

</html>